package com.cloud.test.cloudribbon.biz;

import com.alibaba.fastjson.JSON;

import java.util.Observable;
import java.util.Observer;

/**
 * Servier class
 *
 * @author xule
 * @date 2018/06/28
 */
public class Server implements Observer{

    private String serv;

    public Server(String serv) {
        this.serv = serv;
    }

    @Override
    public void update(Observable o, Object arg) {
        System.out.println(serv + "," + JSON.toJSONString(arg));
    }
}
